package com.buba.system.dao.impl;

import com.buba.system.dao.UserDao;
import com.buba.util.DBPool;
import org.apache.commons.dbutils.QueryRunner;

import java.sql.SQLException;

public class UserDaoImpl implements UserDao {
    QueryRunner queryRunner = new QueryRunner(DBPool.getDS());
    @Override
    public void updHeadImg(int userId, String s) {
        String sql = "update userinfo set headImg=? where UserId=?";
        try {
            queryRunner.update(sql,s,userId);
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
    }
}
